package com.mini.mysql.model;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zl
 * @version 1.0
 * @date Created in 2020/5/13
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class UserFullDept implements Serializable {

    private static final long serialVersionUID = 8630446490636233170L;

    @Id
    private Long userId;

    @Column(name="dept_level1_id")
    private Long deptLevel1Id;

    @Column(name="dept_level2_id")
    private Long deptLevel2Id;

    @Column(name="dept_level3_id")
    private Long deptLevel3Id;

    private Long sku;
    private Long workRoom;
    private Long od;
    private Long og;

    @Column(name="dept_level7_id")
    private Long deptLevel7Id;

    @Column(name="dept_level8_id")
    private Long deptLevel8Id;

    @Column(name="dept_level9_id")
    private Long deptLevel9Id;

    private Boolean loginStatus;
    private Boolean onlineStatus;
    
    private Date checkTime;
    private Date lastLoginTime;

}
